<template>

  <!-- 基本框架（侧边栏、标头等） -->

  <div>

    <el-container>
      <el-header>
        <span>
          <img src="https://pic.imeitou.com/uploads/allimg/230215/7-230215091627.jpg" alt="" width="45px">
          <b>圈子管理系统</b>
        </span>
        <span>
          <img :src="adminInfo.avatar" alt="" width="45px" height="45px" style="border-radius: 50%;margin-right: 20px;">
          <!-- <b>{{ adminInfo.nickName }}</b> -->
          <i>{{ adminInfo.nickname }}</i>
        </span>
      </el-header>

      <el-container class="container">
        <el-aside width="200px">

          <ul>

            <li><router-link to="/user">用户管理</router-link></li>
            <li><router-link to="/category">圈子管理</router-link></li>
            <li><router-link to="/category">评论管理</router-link></li>
            <li><router-link to="/category">轮播图管理</router-link></li>
          </ul>


        </el-aside>

        <!-- 内容 -->
        <el-main>
          <!-- <router-view></router-view> -->
          <slot></slot>
        </el-main>

      </el-container>
    </el-container>


  </div>
</template>

<script>
export default {
  data() {
    return {
      adminInfo: JSON.parse(localStorage.getItem("adminInfo")),
      title: "",
      // 数据
      dataList: [],
      // 商品列表
      springList: [],
      token: "",
      total: 0,

    };
  },
  created() {
    this.getList()
  },
  methods: {
    getList() {

    },
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}
</script>
<style scoped>
* {
  margin: 0;
  padding: 0;
}

.actiiveTest {
  color: rgb(169, 77, 15);
}

.el-header {
  background-color: #7d8692;
  color: #333;
  display: flex;
  justify-content: space-between;
}

.el-header span {
  /* margin: 0 10px; */
  display: flex;
  align-items: center;
}

.el-aside {
  background-color: #474d54;
  text-align: center;
  line-height: 200px;
}

.el-aside ul {
  list-style: none;
}

.el-aside ul li {
  height: 50px;
  line-height: 50px;
}

/* 侧边栏字体颜色 */
.el-aside ul li a {
  /* 下划线 */
  text-decoration: none;
  color: #999999;
}

/* .el-aside ul li a.router-link-exact-active {
  color: bisque;
  font-weight: bold;
} */

.el-aside ul li a.green {
  color: #cc7a18;
  font-weight: bold;
}

.el-main {
  /* background-color: #E9EEF3; */
  color: #333;
  /* text-align: center; */
  /* line-height: 160px; */
}

.container {
  height: calc(100vh - 60px);
}
</style>